<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <script type="text/javascript" src="<%=basePath %>/resource/js/common-css-js.js"></script>
<title>大旗科技有限公司-生产订单更新</title>
</head>
<body>
  <div class="panel-body" style="padding-bottom:0px;">
	<form class="layui-form">
	  <input type="hidden" name="id"/>
	  <div class="layui-form-item">
	      <input type="text" name="datetime" lay-verify="required|date" placeholder="日期" autocomplete="off" class="layui-input">
	  </div>
	  <div class="layui-form-item">
	      <input type="text" name="group" lay-verify="required" placeholder="拉线组" autocomplete="off" class="layui-input">
	  </div>
	  <div class="layui-form-item">
	      <input type="text" name="name" lay-verify="required" placeholder="货物名称" autocomplete="off" class="layui-input">
	  </div>
	  <div class="layui-form-item">
	      <input type="text" name="model"  placeholder="类型" autocomplete="off" class="layui-input">
	  </div>
	  <div class="layui-form-item">
	      <input type="text" name="nature" placeholder="性质" autocomplete="off" class="layui-input">
	  </div>
	  <div class="layui-form-item">
	      <input type="text" name="productionDate" lay-verify="required|date" placeholder="生产日期" autocomplete="off" class="layui-input">
	  </div>
	  <div class="layui-form-item">
	      <input type="text" name="atNumber" lay-verify="required|intNumber" placeholder="在制品数" autocomplete="off" class="layui-input">
	  </div>
	  <div class="layui-form-item">
	      <input type="text" name="onNumber" lay-verify="required|intNumber" placeholder="完工数" autocomplete="off" class="layui-input">
	  </div>
	  <div class="layui-form-item">
	      <input type="text" name="badNumber" lay-verify="required|intNumber" placeholder="坏品数" autocomplete="off" class="layui-input">
	  </div>
	  <div class="layui-form-item">
	      <input type="text" name="productionPeople" lay-verify="required|number" placeholder="生产人员" autocomplete="off" class="layui-input">
	  </div>
	  <div class="layui-form-item">
	  	  <textarea name="remark" placeholder="备注" class="layui-textarea"></textarea>
	  </div>
	  <%@include file="/admin/commonsPage/submit-reset.html" %>
	</form>
  </div>
  <script type="text/javascript">
  
  	laydate.render({
  	  elem: "[name='datetime'],[name='productionDate']"
  	  ,showBottom: false
  	});
  	
	//回现数据
	var selectedRow = parent.cTable.bootstrapTable('getSelections');
	
	for(item in selectedRow[0]){
		$("div [name='"+item+"']").val(selectedRow[0][item]);
	}
  	requestUpdateData("/production/pro-statics");
  </script>
</body>
</html>